/**
 * 
 */
package com.maohi.software.arii.mvc.events;

import java.util.EventObject;
import java.util.Map;

/**
 * @author heifara
 * 
 */
public class UIEvent extends EventObject {

	private static final long serialVersionUID = 1L;
	private int type;
	private Map<String, Object> context;

	public UIEvent(Object source, int aType, Map<String, Object> aContext) {
		super(source);
		this.type = aType;
		this.context = aContext;
	}

	public Object get(String aKey) {
		return this.context.get(aKey);
	}

	public int getType() {
		return this.type;
	}

}
